#ifndef REQUESTFACTORY_H
#define REQUESTFACTORY_H
#include "codecfactory.h"
#include "requestcodec.h"

class RequestFactory : public CodecFactory
{
public:
    // 创建编码对象
    RequestFactory(QString enc);
    // 创建解码对象
    RequestFactory(RequestInfo* info);
    ~RequestFactory();

    // 工厂函数
    Codec* createCodec();

private:
    QString m_encStr;
    RequestInfo* m_info;

};

#endif // REQUESTFACTORY_H
